/* 
 * File:   newsimpletest.cpp
 * Author: ScaV
 *
 * Created on Oct 26, 2011, 5:25:20 PM
 */

#include <stdlib.h>
#include <iostream>
#include "scanner.h"
/*
 * Simple C++ Test Suite
 */

void test1() {
	std::cout << "newsimpletest test 1" << std::endl;
}

void test2() {
	std::cout << "newsimpletest test 2" << std::endl;
	scanner a("t1.txt");
	lexeme *g;
	g = new lexeme;
	g = a.getNextLex();
	if (g->line == 3)
		return;
	std::cout << "%TEST_FAILED% time=0 testname=test2 (newsimpletest) message=error message sample" << std::endl;
}

int main(int argc, char** argv) {
	std::cout << "%SUITE_STARTING% newsimpletest" << std::endl;
	std::cout << "%SUITE_STARTED%" << std::endl;

	std::cout << "%TEST_STARTED% test1 (newsimpletest)" << std::endl;
	test1();
	std::cout << "%TEST_FINISHED% time=0 test1 (newsimpletest)" << std::endl;

	std::cout << "%TEST_STARTED% test2 (newsimpletest)\n" << std::endl;
	test2();
	std::cout << "%TEST_FINISHED% time=0 test2 (newsimpletest)" << std::endl;

	std::cout << "%SUITE_FINISHED% time=0" << std::endl;

	return (EXIT_SUCCESS);
}

